//
//  BZDatabase.h
//  Benz
//
//  Created by up72-2 on 15/9/19.
//  Copyright (c) 2015年 up72_01. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef void(^deleteSuccessBlock)(NSString *);
typedef void(^updateSuccessBlock)();
typedef void(^updateFailBlock)();
@interface BZDatabase : NSObject

+(BZDatabase *)shareInstance;

- (void)createDB;

-(void)insertOffLineMsgTable:(NSMutableDictionary *)messageDic currentTele:(NSString *)tele offTime:(NSString *)time successBlock:(updateSuccessBlock)blockS failBlock:(updateFailBlock)failB;

- (NSMutableArray *)getAllOffLineData;

- (void)deleteFromOffMsgTableByTel:(NSString *)telephone currentUser:(NSString *)user block:(deleteSuccessBlock)block;
@end
